<template>
  <div>
    <BasicTable @register="registerTable">
    </BasicTable>
  </div>
</template>
<script lang="ts">
  import { defineComponent } from 'vue';
  import { BasicTable, useTable, TableAction } from '/@/components/Table';
  import { getSysActionLogApi } from '/@/api/modules/system/user';
  import { columns } from './userActionLogs.data';
  export default defineComponent({
    name: 'UserActionLogs',
    components: { BasicTable , TableAction },
    props: { userId:{ type: [String, Array<String>] } },
    setup(props) {
      const [registerTable] = useTable({
        title: '用户操作日志列表',
        api: getSysActionLogApi,
        searchInfo: { userId: props.userId },
        columns,
        formConfig: {
          labelWidth: 120
        },
        showTableSetting: true,
        bordered: true,
        showIndexColumn: false
      });

      return {
        registerTable
      };
    },
  });
</script>
